# -*- coding = utf-8 -*-
# @Time : 2022/2/16 20:24
# @File : topic4.py
# @Software : PyCharm
import os
import sys


# class Student:
#     num = 0
#     name = ''
#     sex = ''
#     high = 0
#     weigh = 0
#     result = 0
#     home = ''
#     phone = 0
#
#     def study(self, hour):
#         print(self.name, "学了", hour, "个小时")
#
#     def games(self, game):
#         print(self.name, "玩了", game)
#
#     def python(self, hang):
#         print(self.name, "写了", hang, "行代码")
#
#
# p = Student()
# p.name = '张三'
# p.study(10)
# p.games("CS:GO")
# p.python(33)


# class Car:
#     xinghao = ""
#     chelun = 0
#     color = ""
#     weight = 0
#     youxiang = 0
#
#     def run(self):
#         pass
#
#     def che(self, name):
#         print(name, "是", self.xinghao, self.chelun, "个车轮，",
#               self.color, "车身，车身重", self.weight, "吨，油箱储存",
#               self.youxiang, "公升")
#
#
# fa = Car()
# fa.xinghao = "跑车"
# fa.chelun = 4
# fa.color = "红色"
# fa.weight = 1
# fa.youxiang = 200
# fa.che("法拉利")
#
# bmw = Car()
# bmw.xinghao = "轿车"
# bmw.chelun = 4
# bmw.color = "白色"
# bmw.weight = 2
# bmw.youxiang = 300
# bmw.che("宝马")
#
# lingmu = Car()
# lingmu.xinghao = "摩托车"
# lingmu.chelun = 2
# lingmu.color = "蓝色"
# lingmu.weight = 0.5
# lingmu.youxiang = 80
# lingmu.che("铃木")
#
# wuling = Car()
# wuling.xinghao = "越野"
# wuling.chelun = 4
# wuling.color = "灰色"
# wuling.weight = 1.8
# wuling.youxiang = 300
# wuling.che("五菱")
#
# wuling = Car()
# wuling.xinghao = "越野"
# wuling.chelun = 4
# wuling.color = "红白色"
# wuling.weight = 1
# wuling.youxiang = 100
# wuling.che("拖拉机")

# class Laptop:
#     brand = ''
#     standby = 0
#     color = ''
#     weight = 0
#     cpu = ''
#     memory = ''
#     hd = 0
#
#     def games(self, game, hour):
#         print('这个人喜欢玩', game, '，已经玩了', hour, '小时！')
#
#     def office(self, office, hour):
#         print('这个人喜欢', office, '，已经卷了', hour, '小时!')
#
#
# computer = Laptop()
# computer.office('办公', 20)
# computer.games('CS:GO', 24)

class Monkey:
    category = ""
    sex = ""
    color = ""
    weight = ""

    def fire(self, materials):
        print(self.category, "正在使用", materials, "造火。")

    def study(self, python, english):
        print(self.category, "正在学习", python, "，之后又学习了", english)


i = Monkey()
i.category = "南方古猿"
i.fire("木棍和石头")
i.study("Python", "英语。")
